/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package jp.co.irep.juten.entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author toan_nguyen
 */
@Entity
@Table(name = "catalog_master_tbl")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "CatalogMasterTbl.findAll", query = "SELECT c FROM CatalogMasterTbl c"),
    @NamedQuery(name = "CatalogMasterTbl.findByCatalogId", query = "SELECT c FROM CatalogMasterTbl c WHERE c.catalogId = :catalogId"),
    @NamedQuery(name = "CatalogMasterTbl.findByMakerNo", query = "SELECT c FROM CatalogMasterTbl c WHERE c.makerNo = :makerNo"),
    @NamedQuery(name = "CatalogMasterTbl.findByMakerName", query = "SELECT c FROM CatalogMasterTbl c WHERE c.makerName = :makerName"),
    @NamedQuery(name = "CatalogMasterTbl.findByCatalogNo", query = "SELECT c FROM CatalogMasterTbl c WHERE c.catalogNo = :catalogNo"),
    @NamedQuery(name = "CatalogMasterTbl.findByStatus", query = "SELECT c FROM CatalogMasterTbl c WHERE c.status = :status"),
    @NamedQuery(name = "CatalogMasterTbl.findByOrderNo", query = "SELECT c FROM CatalogMasterTbl c WHERE c.orderNo = :orderNo"),
    @NamedQuery(name = "CatalogMasterTbl.findByCatalogName", query = "SELECT c FROM CatalogMasterTbl c WHERE c.catalogName = :catalogName"),
    @NamedQuery(name = "CatalogMasterTbl.findByBikou", query = "SELECT c FROM CatalogMasterTbl c WHERE c.bikou = :bikou"),
    @NamedQuery(name = "CatalogMasterTbl.findByDispType1", query = "SELECT c FROM CatalogMasterTbl c WHERE c.dispType1 = :dispType1"),
    @NamedQuery(name = "CatalogMasterTbl.findByDispType2", query = "SELECT c FROM CatalogMasterTbl c WHERE c.dispType2 = :dispType2"),
    @NamedQuery(name = "CatalogMasterTbl.findByDispType3", query = "SELECT c FROM CatalogMasterTbl c WHERE c.dispType3 = :dispType3"),
    @NamedQuery(name = "CatalogMasterTbl.findByDispType4", query = "SELECT c FROM CatalogMasterTbl c WHERE c.dispType4 = :dispType4"),
    @NamedQuery(name = "CatalogMasterTbl.findByDispType5", query = "SELECT c FROM CatalogMasterTbl c WHERE c.dispType5 = :dispType5"),
    @NamedQuery(name = "CatalogMasterTbl.findByDispType6", query = "SELECT c FROM CatalogMasterTbl c WHERE c.dispType6 = :dispType6"),
    @NamedQuery(name = "CatalogMasterTbl.findByDispType7", query = "SELECT c FROM CatalogMasterTbl c WHERE c.dispType7 = :dispType7"),
    @NamedQuery(name = "CatalogMasterTbl.findByDispType8", query = "SELECT c FROM CatalogMasterTbl c WHERE c.dispType8 = :dispType8"),
    @NamedQuery(name = "CatalogMasterTbl.findByDispType9", query = "SELECT c FROM CatalogMasterTbl c WHERE c.dispType9 = :dispType9"),
    @NamedQuery(name = "CatalogMasterTbl.findByDispType10", query = "SELECT c FROM CatalogMasterTbl c WHERE c.dispType10 = :dispType10"),
    @NamedQuery(name = "CatalogMasterTbl.findByCategory1", query = "SELECT c FROM CatalogMasterTbl c WHERE c.category1 = :category1"),
    @NamedQuery(name = "CatalogMasterTbl.findByCategory2", query = "SELECT c FROM CatalogMasterTbl c WHERE c.category2 = :category2"),
    @NamedQuery(name = "CatalogMasterTbl.findByCategory3", query = "SELECT c FROM CatalogMasterTbl c WHERE c.category3 = :category3"),
    @NamedQuery(name = "CatalogMasterTbl.findByCategory4", query = "SELECT c FROM CatalogMasterTbl c WHERE c.category4 = :category4"),
    @NamedQuery(name = "CatalogMasterTbl.findByCategory5", query = "SELECT c FROM CatalogMasterTbl c WHERE c.category5 = :category5"),
    @NamedQuery(name = "CatalogMasterTbl.findByCategory6", query = "SELECT c FROM CatalogMasterTbl c WHERE c.category6 = :category6"),
    @NamedQuery(name = "CatalogMasterTbl.findByCategory7", query = "SELECT c FROM CatalogMasterTbl c WHERE c.category7 = :category7"),
    @NamedQuery(name = "CatalogMasterTbl.findByCategory8", query = "SELECT c FROM CatalogMasterTbl c WHERE c.category8 = :category8"),
    @NamedQuery(name = "CatalogMasterTbl.findByCategory9", query = "SELECT c FROM CatalogMasterTbl c WHERE c.category9 = :category9"),
    @NamedQuery(name = "CatalogMasterTbl.findByCategory10", query = "SELECT c FROM CatalogMasterTbl c WHERE c.category10 = :category10"),
    @NamedQuery(name = "CatalogMasterTbl.findByCheckFl", query = "SELECT c FROM CatalogMasterTbl c WHERE c.checkFl = :checkFl"),
    @NamedQuery(name = "CatalogMasterTbl.findByFukaFl", query = "SELECT c FROM CatalogMasterTbl c WHERE c.fukaFl = :fukaFl"),
    @NamedQuery(name = "CatalogMasterTbl.findByBackColor", query = "SELECT c FROM CatalogMasterTbl c WHERE c.backColor = :backColor"),
    @NamedQuery(name = "CatalogMasterTbl.findByDownloadName", query = "SELECT c FROM CatalogMasterTbl c WHERE c.downloadName = :downloadName"),
    @NamedQuery(name = "CatalogMasterTbl.findByDownloadNo", query = "SELECT c FROM CatalogMasterTbl c WHERE c.downloadNo = :downloadNo"),
    @NamedQuery(name = "CatalogMasterTbl.findByImage", query = "SELECT c FROM CatalogMasterTbl c WHERE c.image = :image"),
    @NamedQuery(name = "CatalogMasterTbl.findByContent", query = "SELECT c FROM CatalogMasterTbl c WHERE c.content = :content")})
public class CatalogMasterTbl implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "catalog_id")
    private Integer catalogId;
    @Basic(optional = false)
    @NotNull
    @Column(name = "maker_no")
    private int makerNo;
    @Size(max = 255)
    @Column(name = "maker_name")
    private String makerName;
    @Basic(optional = false)
    @NotNull
    @Column(name = "catalog_no")
    private int catalogNo;
    @Basic(optional = false)
    @NotNull
    @Column(name = "status")
    private short status;
    @Column(name = "order_no")
    private Integer orderNo;
    @Size(max = 255)
    @Column(name = "catalog_name")
    private String catalogName;
    @Size(max = 2147483647)
    @Column(name = "bikou")
    private String bikou;
    @Basic(optional = false)
    @NotNull
    @Column(name = "disp_type1")
    private short dispType1;
    @Basic(optional = false)
    @NotNull
    @Column(name = "disp_type2")
    private short dispType2;
    @Basic(optional = false)
    @NotNull
    @Column(name = "disp_type3")
    private short dispType3;
    @Basic(optional = false)
    @NotNull
    @Column(name = "disp_type4")
    private short dispType4;
    @Basic(optional = false)
    @NotNull
    @Column(name = "disp_type5")
    private short dispType5;
    @Basic(optional = false)
    @NotNull
    @Column(name = "disp_type6")
    private short dispType6;
    @Basic(optional = false)
    @NotNull
    @Column(name = "disp_type7")
    private short dispType7;
    @Basic(optional = false)
    @NotNull
    @Column(name = "disp_type8")
    private short dispType8;
    @Basic(optional = false)
    @NotNull
    @Column(name = "disp_type9")
    private short dispType9;
    @Basic(optional = false)
    @NotNull
    @Column(name = "disp_type10")
    private short dispType10;
    @Basic(optional = false)
    @NotNull
    @Column(name = "category1")
    private short category1;
    @Basic(optional = false)
    @NotNull
    @Column(name = "category2")
    private short category2;
    @Basic(optional = false)
    @NotNull
    @Column(name = "category3")
    private short category3;
    @Basic(optional = false)
    @NotNull
    @Column(name = "category4")
    private short category4;
    @Basic(optional = false)
    @NotNull
    @Column(name = "category5")
    private short category5;
    @Basic(optional = false)
    @NotNull
    @Column(name = "category6")
    private short category6;
    @Basic(optional = false)
    @NotNull
    @Column(name = "category7")
    private short category7;
    @Basic(optional = false)
    @NotNull
    @Column(name = "category8")
    private short category8;
    @Basic(optional = false)
    @NotNull
    @Column(name = "category9")
    private short category9;
    @Basic(optional = false)
    @NotNull
    @Column(name = "category10")
    private short category10;
    @Basic(optional = false)
    @NotNull
    @Column(name = "check_fl")
    private short checkFl;
    @Basic(optional = false)
    @NotNull
    @Column(name = "fuka_fl")
    private short fukaFl;
    @Size(max = 16)
    @Column(name = "back_color")
    private String backColor;
    @Size(max = 2147483647)
    @Column(name = "download_name")
    private String downloadName;
    @Column(name = "download_no")
    private Integer downloadNo;
    @Size(max = 2147483647)
    @Column(name = "image")
    private String image;
    @Size(max = 2147483647)
    @Column(name = "content")
    private String content;

    public CatalogMasterTbl() {
    }

    public CatalogMasterTbl(Integer catalogId) {
        this.catalogId = catalogId;
    }

    public CatalogMasterTbl(Integer catalogId, int makerNo, int catalogNo, short status, short dispType1, short dispType2, short dispType3, short dispType4, short dispType5, short dispType6, short dispType7, short dispType8, short dispType9, short dispType10, short category1, short category2, short category3, short category4, short category5, short category6, short category7, short category8, short category9, short category10, short checkFl, short fukaFl) {
        this.catalogId = catalogId;
        this.makerNo = makerNo;
        this.catalogNo = catalogNo;
        this.status = status;
        this.dispType1 = dispType1;
        this.dispType2 = dispType2;
        this.dispType3 = dispType3;
        this.dispType4 = dispType4;
        this.dispType5 = dispType5;
        this.dispType6 = dispType6;
        this.dispType7 = dispType7;
        this.dispType8 = dispType8;
        this.dispType9 = dispType9;
        this.dispType10 = dispType10;
        this.category1 = category1;
        this.category2 = category2;
        this.category3 = category3;
        this.category4 = category4;
        this.category5 = category5;
        this.category6 = category6;
        this.category7 = category7;
        this.category8 = category8;
        this.category9 = category9;
        this.category10 = category10;
        this.checkFl = checkFl;
        this.fukaFl = fukaFl;
    }

    public Integer getCatalogId() {
        return catalogId;
    }

    public void setCatalogId(Integer catalogId) {
        this.catalogId = catalogId;
    }

    public int getMakerNo() {
        return makerNo;
    }

    public void setMakerNo(int makerNo) {
        this.makerNo = makerNo;
    }

    public String getMakerName() {
        return makerName;
    }

    public void setMakerName(String makerName) {
        this.makerName = makerName;
    }

    public int getCatalogNo() {
        return catalogNo;
    }

    public void setCatalogNo(int catalogNo) {
        this.catalogNo = catalogNo;
    }

    public short getStatus() {
        return status;
    }

    public void setStatus(short status) {
        this.status = status;
    }

    public Integer getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(Integer orderNo) {
        this.orderNo = orderNo;
    }

    public String getCatalogName() {
        return catalogName;
    }

    public void setCatalogName(String catalogName) {
        this.catalogName = catalogName;
    }

    public String getBikou() {
        return bikou;
    }

    public void setBikou(String bikou) {
        this.bikou = bikou;
    }

    public short getDispType1() {
        return dispType1;
    }

    public void setDispType1(short dispType1) {
        this.dispType1 = dispType1;
    }

    public short getDispType2() {
        return dispType2;
    }

    public void setDispType2(short dispType2) {
        this.dispType2 = dispType2;
    }

    public short getDispType3() {
        return dispType3;
    }

    public void setDispType3(short dispType3) {
        this.dispType3 = dispType3;
    }

    public short getDispType4() {
        return dispType4;
    }

    public void setDispType4(short dispType4) {
        this.dispType4 = dispType4;
    }

    public short getDispType5() {
        return dispType5;
    }

    public void setDispType5(short dispType5) {
        this.dispType5 = dispType5;
    }

    public short getDispType6() {
        return dispType6;
    }

    public void setDispType6(short dispType6) {
        this.dispType6 = dispType6;
    }

    public short getDispType7() {
        return dispType7;
    }

    public void setDispType7(short dispType7) {
        this.dispType7 = dispType7;
    }

    public short getDispType8() {
        return dispType8;
    }

    public void setDispType8(short dispType8) {
        this.dispType8 = dispType8;
    }

    public short getDispType9() {
        return dispType9;
    }

    public void setDispType9(short dispType9) {
        this.dispType9 = dispType9;
    }

    public short getDispType10() {
        return dispType10;
    }

    public void setDispType10(short dispType10) {
        this.dispType10 = dispType10;
    }

    public short getCategory1() {
        return category1;
    }

    public void setCategory1(short category1) {
        this.category1 = category1;
    }

    public short getCategory2() {
        return category2;
    }

    public void setCategory2(short category2) {
        this.category2 = category2;
    }

    public short getCategory3() {
        return category3;
    }

    public void setCategory3(short category3) {
        this.category3 = category3;
    }

    public short getCategory4() {
        return category4;
    }

    public void setCategory4(short category4) {
        this.category4 = category4;
    }

    public short getCategory5() {
        return category5;
    }

    public void setCategory5(short category5) {
        this.category5 = category5;
    }

    public short getCategory6() {
        return category6;
    }

    public void setCategory6(short category6) {
        this.category6 = category6;
    }

    public short getCategory7() {
        return category7;
    }

    public void setCategory7(short category7) {
        this.category7 = category7;
    }

    public short getCategory8() {
        return category8;
    }

    public void setCategory8(short category8) {
        this.category8 = category8;
    }

    public short getCategory9() {
        return category9;
    }

    public void setCategory9(short category9) {
        this.category9 = category9;
    }

    public short getCategory10() {
        return category10;
    }

    public void setCategory10(short category10) {
        this.category10 = category10;
    }

    public short getCheckFl() {
        return checkFl;
    }

    public void setCheckFl(short checkFl) {
        this.checkFl = checkFl;
    }

    public short getFukaFl() {
        return fukaFl;
    }

    public void setFukaFl(short fukaFl) {
        this.fukaFl = fukaFl;
    }

    public String getBackColor() {
        return backColor;
    }

    public void setBackColor(String backColor) {
        this.backColor = backColor;
    }

    public String getDownloadName() {
        return downloadName;
    }

    public void setDownloadName(String downloadName) {
        this.downloadName = downloadName;
    }

    public Integer getDownloadNo() {
        return downloadNo;
    }

    public void setDownloadNo(Integer downloadNo) {
        this.downloadNo = downloadNo;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (catalogId != null ? catalogId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof CatalogMasterTbl)) {
            return false;
        }
        CatalogMasterTbl other = (CatalogMasterTbl) object;
        if ((this.catalogId == null && other.catalogId != null) || (this.catalogId != null && !this.catalogId.equals(other.catalogId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "jp.co.irep.tech.juten.jpa.entity.CatalogMasterTbl[ catalogId=" + catalogId + " ]";
    }
    
}
